package cn.iot.sys.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 人脸识别记录类
 */
@Data
@TableName("t_sys_facerecord")
public class SysFaceRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private int id;
    @TableField("validStatus")
    private int validStatus;//门禁事件类型 1-进门 2-出门
    @TableField("bStatus")
    private int bStatus;//验证状态 1-成功 0-失败
    @TableField("failCode")
    private int failCode;//错误码
    @TableField("name")
    private String name;//卡命名
    @TableField("faceImg")
    private String faceImg;//人脸图
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    @TableField("recognitionTime")
    private Date recognitionTime;//人脸识别时间
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    @TableField("createDate")
    private Date createDate;//创建时间
}
